﻿using AntdUI;
using BST250301TestStand.Models;
using MySql.Data.MySqlClient;
using Mysqlx.Crud;
using NPOI.SS.Formula.Functions;
using NPOI.Util;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Windows.Forms;

namespace BST250301.Views
{
    public partial class ShowDialogInput : Form
    {
        public bool submit;
        public string inputstr;
        private string _msg = string.Empty;
        /// <summary>
        ///自动关闭时为传入isAutoConfirm值
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="seconds"></param>
        /// <param name="isAutoConfirm"></param>
        public ShowDialogInput(string msg)
        {
            InitializeComponent();
            this._msg = msg;
            this.label1.Text = msg;
            this.FormBorderStyle= FormBorderStyle.FixedSingle;
        }


        private void buttonAdd_Click(object sender, EventArgs e)
        {
            inputstr = this.input1.Text;
            submit = true;
            this.Dispose();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            submit = false;
            this.Dispose();
        }
    }
}
